Problem Note 36148: Square transformation might return incorrect results when LENGTH statement is used
When a LENGTH statement has been used to set the length of a variable to a value less than 8., PROC TRANSREG reports incorrect results for the square transformation. The incorrect results are very close to zero (0). The problem occurs for variables that appear in the model statement, but do not appear in the model.
For example, in the code below, the variable X appears in the MODEL statement. But, only the product of X with itself (X*X = X**2) appears in the model.
proc transreg data=mydata;
model identity(y) = ide(x*x);
output;
run;
In this situation, the model results will be incorrect. To avoid the problem, build the squared variable in a DATA step.
data newdata;
set mydata;
x2=x*x;
run;
proc transreg data=newdata;
model identity(y) = ide(x2);
output;
run;
Operating System and Release Information
SAS System | SAS/STAT | z/OS | 9.1 TS1M3 SP4 | 9.2 TS2M2 |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M3 SP4 | 9.2 TS2M2 |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.1 TS1M3 SP4 | 9.2 TS2M2 |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.1 TS1M3 SP4 | 9.2 TS2M2 |
Microsoft Windows XP 64-bit Edition | 9.1 TS1M3 SP4 | 9.2 TS2M2 |
Microsoft Windows 2000 Advanced Server | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Datacenter Server | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Server | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Professional | 9.1 TS1M3 SP4 | |
Microsoft Windows NT Workstation | 9.1 TS1M3 SP4 | |
Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M3 SP4 | 9.2 TS2M2 |
Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M3 SP4 | 9.2 TS2M2 |
Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M3 SP4 | 9.2 TS2M2 |
Microsoft Windows XP Professional | 9.1 TS1M3 SP4 | 9.2 TS2M2 |
64-bit Enabled AIX | 9.1 TS1M3 SP4 | 9.2 TS2M2 |
64-bit Enabled HP-UX | 9.1 TS1M3 SP4 | 9.2 TS2M2 |
64-bit Enabled Solaris | 9.1 TS1M3 SP4 | 9.2 TS2M2 |
HP-UX IPF | 9.1 TS1M3 SP4 | 9.2 TS2M2 |
Linux | 9.1 TS1M3 SP4 | 9.2 TS2M2 |
Linux on Itanium | 9.1 TS1M3 SP4 | 9.2 TS2M2 |
OpenVMS Alpha | 9.1 TS1M3 SP4 | 9.2 TS2M2 |
Solaris for x64 | 9.1 TS1M3 SP4 | 9.2 TS2M2 |
Tru64 UNIX | 9.1 TS1M3 SP4 | 9.2 TS2M2 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Variables that appear in the model statement but are not part of the model (such as the product of two variables) are not handled correctly when the variable length is less than 8. The incorrect results are incorrect.
Type: | Problem Note |
Priority: | alert |
Date Modified: | 2009-07-02 13:54:25 |
Date Created: | 2009-06-04 15:43:24 |